<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		
		
		<script>
			
			
			function showLocation(){	
				console.log("location",location);
			}
			
			
			function toBaidu(){
				location.href = "https://www.neuedu.com/";
			}
		
		
			function to163(){
				location.replace("https://www.neuedu.com/")
			}
			
		</script>
	
		
	</head>
	<body>
		<h3>请打开浏览器控制台，观察结果</h3>
			
				
		<button onclick="showLocation()">显示Location</button>
		<button onclick="toBaidu()">显示baidu</button>
		<button onclick="to163()">显示to163</button>
		
		
	
	</body>
</html>